/**
 * 底部tabbar配置文件
 */
import { getFileUrl } from '@/utils'

export default [
  {
    path: '/home',
    name: 'home',
    meta: {
      text: '首页',
      icon: getFileUrl('/src/assets/images/tabbar/home.png'),
      iconActive: getFileUrl('/src/assets/images/tabbar/home2.png'),
    },
    component: () => import('@/views/home/index.vue'),
  },
  {
    path: '/dynamic',
    name: 'dynamic',
    meta: {
      text: '动态',
      icon: getFileUrl('/src/assets/images/tabbar/updateLog.png'),
      iconActive: getFileUrl('/src/assets/images/tabbar/updateLog2.png'),
    },
    component: () => import('@/views/dynamic/index.vue'),
  },
  {
    path: '/invite',
    name: 'invite',
    meta: {
      text: '邀请有礼',
      icon: getFileUrl('/src/assets/images/tabbar/updateLog.png'),
      iconActive: getFileUrl('/src/assets/images/tabbar/updateLog2.png'),
    },
    component: () => import('@/views/invite/index.vue'),
  },
  {
    path: '/message',
    name: 'message',
    meta: {
      text: '消息',
      icon: getFileUrl('/src/assets/images/tabbar/updateLog.png'),
      iconActive: getFileUrl('/src/assets/images/tabbar/updateLog2.png'),
    },
    component: () => import('@/views/message/index.vue'),
  },

  {
    path: '/my',
    name: 'my',
    meta: {
      text: '我的',
      icon: getFileUrl('/src/assets/images/tabbar/my.png'),
      iconActive: getFileUrl('/src/assets/images/tabbar/my2.png'),
    },
    component: () => import('@/views/my/index.vue'),
  },
]
